package net.lab1024.sa.admin.module.business.sp.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.lab1024.sa.admin.module.business.sp.domain.SpEntity;
import net.lab1024.sa.admin.module.business.sp.domain.SpVO;
import net.lab1024.sa.admin.module.business.sp.domain.form.SpQueryForm;
import net.lab1024.sa.base.module.support.config.domain.ConfigEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Mapper
@Component
public interface SpDao extends BaseMapper<SpEntity> {



    List<SpEntity> queryByPage(Page page, @Param("query") SpQueryForm queryForm);


    List<SpEntity> selectByName(String Name);
    List<SpVO> selectByShopId(Long shopId);

    SpEntity selectById(Long id);
    SpEntity deleteById(Long id);
}
